<%-- 
    Document   : index
    Created on : Oct 2, 2011, 5:03:04 PM
    Author     : DARM
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <hi>Bienvenido</hi>
    <p>	La hora del servidor es: 	<br>
        <% String saludo = "";

            java.util.Date date = new java.util.Date();

            if (date.getHours() < 13) {

                saludo = "Buenos dias";
            } else {
                saludo = "Buenas tardes";
            }

        %>
        <%= date%>
        <br>
        <b><%= saludo%></b>

    </p>

</body>
</html>
